// 将一维数组转为二维数组
export function dimensionOneToTwo(arr, n) {
    let result = []
    for (let i = 0, len = arr.length; i < len; i += n) {
        result.push(arr.slice(i, i + n))
    }
    return result
}